<?php

namespace app\models\jasper;

trait JasperApiAddRoutableMSISDNTrait
{
    /**
     * @param string $iccid
     * @param string $addressLine1
     * @param string $addressLine2
     * @param string $city
     * @param string $state
     * @param string $zip
     * @param string $country
     * @return \stdClass
     * @throws \Exception
     */
    public function AddRoutableMSISDN($iccid, $addressLine1, $addressLine2, $city, $state, $zip, $country)
    {
        return $this->call(
            preg_replace('/.*JasperApi(.*?)Trait/', '$1', __TRAIT__),
            __FUNCTION__,
            [
                'iccid' => $iccid,
                'addressLine1' => $addressLine1,
                'addressLine2' => $addressLine2,
                'city' => $city,
                'state' => $state,
                'zip' => $zip,
                'country' => $country,
            ]
        );
    }
}
